package com.shop.cereshop.app.dao.buyer;

import com.shop.cereshop.commons.domain.buyer.CereBuyerCommentLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CereBuyerCommentLikeDAO {
    int deleteByPrimaryKey(Long commentId);

    int insert(CereBuyerCommentLike record);

    int insertSelective(CereBuyerCommentLike record);

    CereBuyerCommentLike selectByPrimaryKey(Long commentId);

    int updateByPrimaryKeySelective(CereBuyerCommentLike record);

    int updateByPrimaryKey(CereBuyerCommentLike record);

    CereBuyerCommentLike findByUserIdAndCommentId(@Param("buyerUserId") Long buyerUserId, @Param("commentId") Long commentId);

    void updateBuyerData(@Param("buyerUserId") Long buyerUserId, @Param("id") Long id);
}